<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta charset="utf-8" />
    <title>登录和注册</title>
	<meta name="description" content="" />
	<meta name="keywords" content="" />
    <meta name="application-name" content="" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/bootstrap.min.css" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/font-awesome.min.css" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/ace.min.css" id="main-ace-style" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/icons.css" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/jquery.slider.css" />
</head>

<body class="login-layout blur-login">
	<div class="main-container">
		<div class="main-content">
			<div class="row">
				<div class="col-sm-10 col-sm-offset-1">
					<div class="login-container">
						<div class="center">
							<h1>
								<span class="white">用户登录</span>
							</h1>
						</div>
						<div class="space-6"></div>
						<div class="position-relative">
							<div id="login-box"
								class="login-box visible widget-box no-border">
								<div class="widget-body">
									<div class="widget-main">
										<h4 class="header blue lighter bigger">
											<i class="ace-icon fa fa-coffee green"></i> 登录
										</h4>
										<div class="space-6"></div>
										<p>请输入登录信息  <span id="loginsuccess" class="label label-success arrowed"></span></p>
										<form action="${pageContext.request.contextPath}/user/login" method="post">
                                            
											<fieldset>
												<label class="block clearfix"> 
												<span class="label label-danger" id="usernotexistspan" >${usernotexistmsg}</span>
												<span class="block input-icon input-icon-right"> <input
														type="email" id="loginemail" name="uemail" class="form-control" maxlength="16" placeholder="邮箱" required/> <i
														class="ace-icon fa fa-user"></i>
												</span>
												</label> 
												<label class="block clearfix"> <span
													class="block input-icon input-icon-right"> <input
														type="password" name="upsw" class="form-control" minlength="6" maxlength="16" placeholder="密码" required/>
														<i class="ace-icon fa fa-lock"></i>
												</span>
												</label>
												<span class="label label-danger" id="logslispan" >${usernotexistmsg}</span>
												<div id="loginslider" class="slider"></div>
												  
												<div class="space"></div>

												<div class="clearfix">
													<!-- <label class="inline"> <input type="checkbox"
														class="ace" /> <span class="lbl"> 记住我</span>
													</label> -->
                                                    <label>
                                                        <input name="switch-field-1" name="isRemeber" class="ace ace-switch ace-switch-3" type="checkbox" />
                                                        <span class="lbl" data-lbl="开&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关">&nbsp;&nbsp;记住我</span>
                                                    </label>
                                                    
                                                    
													<button type="submit" id="loginbutton" class="width-35 pull-right btn btn-sm btn-primary">
														<i class="ace-icon fa fa-key"></i> <span class="bigger-110">登录</span>
													</button>
												</div>

												<div class="space-4"></div>
											</fieldset>
										</form>

									</div>
									<!-- /.widget-main -->

									<div class="toolbar clearfix">
										<div>
											<a href="#" data-target="#forgot-box" class="forgot-password-link"> <i class="ace-icon fa fa-arrow-left"></i>忘记密码？</a>
										</div>

										<div>
											<a href="#" data-target="#signup-box"
												class="user-signup-link">没有账号？去注册<i
												class="ace-icon fa fa-arrow-right"></i>
											</a>
										</div>
									</div>
								</div>
								<!-- /.widget-body -->
							</div>
							<!-- /.login-box -->

							<div id="forgot-box" class="forgot-box widget-box no-border">
								<div class="widget-body">
									<div class="widget-main">
										<h4 class="header red lighter bigger">
											<i class="ace-icon fa fa-key"></i> 密码找回
										</h4>
                    
										<div class="space-6"></div>
										<p>请输入注册时的邮箱</p>

										<form>
											<fieldset>
												<label class="block clearfix"> <span
													class="block input-icon input-icon-right"> <input
														type="email" class="form-control" maxlength="30" placeholder="邮箱" required/>
														<i class="ace-icon fa fa-envelope"></i>
												</span>
												</label>
												
                                                <div id="findslider" class="slider"></div>
                                                
                                                <div class="space"></div>
												<div class="clearfix">
													<button type="submit"
														class="width-40 pull-right btn btn-sm btn-danger">
														<i class="ace-icon fa fa-lightbulb-o"></i> <span
															class="bigger-110">发送验证信息</span>
													</button>
												</div>
											</fieldset>
										</form>
									</div>
									<!-- /.widget-main -->

									<div class="toolbar center">
										<a href="#" data-target="#login-box"
											class="back-to-login-link">返回登录<i
											class="ace-icon fa fa-arrow-right"></i>
										</a>
									</div>
								</div>
								<!-- /.widget-body -->
							</div>
							<!-- /.forgot-box -->

							<div id="signup-box" class="signup-box widget-box no-border">
								<div class="widget-body">
									<div class="widget-main">
										<h4 class="header green lighter bigger">
											<i class="ace-icon fa fa-users blue"></i>用户注册
										</h4>

										<div class="space-6"></div>
										<p>请输入注册信息  <span id="regsuccess" class="label label-success arrowed"></span></p>
										<form action="${pageContext.request.contextPath}/user/register" method="post">
											<fieldset>
												<label class="block clearfix"> 
												<span class="label label-danger" id="userexistspan" >${userexistmsg}</span>
												<span
													class="block input-icon input-icon-right"><input id="reguemail"
														type="email" name="uemail" class="form-control" maxlength="30" placeholder="邮箱" required/>
														<i class="ace-icon fa fa-envelope"></i>
												</span>
												</label> <label class="block clearfix"> <span
													class="block input-icon input-icon-right"> <input
														type="text" name="uname" class="form-control" minlength="4" maxlength="16" placeholder="用户名" required/> <i
														class="ace-icon fa fa-user"></i>
												</span>
												</label> <label class="block clearfix"> <span
													class="block input-icon input-icon-right"> <input id="regpsw"
														type="password" name="upsw" class="form-control" minlength="6" maxlength="16" placeholder="密码(6至16位数字、字母和下划线组成)" required/>
														<i class="ace-icon fa fa-lock"></i>
												</span>
												</label> 
												<label class="block clearfix"> 
												    <span class="label label-danger" id="pswsure" ></span>
												    <span class="block input-icon input-icon-right"> 
												        <input id="regpswsure" type="password" class="form-control" minlength="6" maxlength="16" placeholder="确认密码" required/>
														  <i class="ace-icon fa fa-retweet"></i>
												    </span>
												</label> 
												
												<span class="label label-danger" id="sliderspan"></span>
												<div id="registerslider" class="slider"></div>
												
												<label class="block"> <input type="checkbox"
													class="ace" required/> <span class="lbl">我同意<a href="#">《用户使用协议》</a>
												</span>
												</label>
												<!-- <div class="space-24"></div> -->
												<div class="clearfix">
													<button type="reset" class="width-30 pull-left btn btn-sm" id="reset">
														<i class="ace-icon fa fa-refresh"></i> <span
															class="bigger-110">重置</span>
													</button>

													<button id="regbutton" type="submit"
														class="width-65 pull-right btn btn-sm btn-success">
														<span id="zhuce" class="bigger-110">注册</span> <i
															class="ace-icon fa fa-arrow-right icon-on-right"></i>
													</button>
												</div>
											</fieldset>
										</form>
									</div>

									<div class="toolbar center">
										<a href="#" data-target="#login-box"
											class="back-to-login-link"> <i
											class="ace-icon fa fa-arrow-left"></i>已有账号？返回登录
										</a>
									</div>
								</div>
								<!-- /.widget-body -->
							</div>
							<!-- /.signup-box -->
						</div>
						<!-- /.position-relative -->
					</div>
				</div>
				<!-- /.col -->
			</div>
			<!-- /.row -->
		</div>
		<!-- /.main-content -->
	</div>
	<!-- /.main-container -->

	<!-- basic scripts -->
    <script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/jquery.validate.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/jquery.slider.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/owner.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/jquery.mobile.custom.min.js"></script>
	<!-- inline scripts related to this page -->
</body>
</html>